<template>
	<view class="myOrderBox">
	
		
		
            <view class="artItem bgWhite plr13 ptb13  radius6   justify-between align-center" v-for="(i,n) in list" :key="n">
                <image :src="i.avatar" mode=""></image>
                <view class="flex-col justify-between  flex1">
                    <text class="name">{{i.wanghong||''}}</text>
					<view class="taglist">
						
						<text class="tag">{{i.mobile||''}}</text>		
						<text v-for="(item,n) in i.pingtai.split(',')" class="tag ml5">{{item||''}}</text>		
						
					</view>
					<view class="">
					<text class="tag ml5">粉丝数：{{i.fensi||''}}</text>			
					</view>
					
                    <text class="desc clamp1">{{i.jieshao||""}}</text>
                </view>
              
			
		</view>
		<view class="ft14 mlr15 mt10" style="color: #999;">*只能查看已选择本公司选品的网红</view>
        <view class="" v-if="list.length==0">
            <uv-empty mode="data" text="列表为空"  icon="https://cdn.uviewui.com/uview/empty/data.png"></uv-empty>
        </view>
	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				page:1,
				list:[],
				total:0

			};
		},
		onLoad() {
			this.page=1
			this.list = []
			this.getlist()
		},
		onReachBottom() {
			if(this.list.length<this.total){
				this.page++
				this.getlist()
			}
		
		},
	
		methods: {
            formateTime(data){
              return this.$utils.formatDateTime(data)  
            },
			getlist(){
				uni.showLoading({
					title:'加载中'
				})
				this.$api.celebrity({page:this.page}).then(res=>{
					console.log(res)
					if(res.code==1){
						this.total = res.data.total
						this.list = [...this.list,...res.data.data]
					}
					
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.myOrderBox {
		
		position: relative;
		

		.orderTitle {
			width: 750rpx;
			height: 98rpx;
			// background-color: #FFFFFF;
			display: flex;
			font-size: 26rpx;
			color: #666666;
            border-bottom: 2rpx solid  rgba(151,151,151,0.062);
			.titleItem {
				height: 98rpx;
				line-height: 98rpx;
				text-align: center;
				flex-basis: 0rpx;
				flex-grow: 1;
				font-weight: 600;
			}

			.active {
				height: 98rpx;
				line-height: 98rpx;
				text-align: center;
				flex-basis: 0rpx;
				flex-grow: 1;
				color: #000000;
				position: relative;
				font-weight: 600;
			}

			.active::after {
				position: absolute;
				content: "";
				width: 74rpx;
				height: 4rpx;
				bottom: 0rpx;
				left: 50%;
				transform: translateX(-50%);
				background: #2CC6A1;
			}
		}

	}	
    .submitPz{
        width: 165rpx;
        height: 54rpx;
        background: #434343;
        border-radius: 6rpx;
        font-size: 24rpx;
        color: #FFFFFF;
        text-align: center;
        line-height: 54rpx;
    }
    .artItem {
        
        font-size: 24rpx;
        color: #999999;
        width: 706rpx;
        height: 210rpx;
        margin: 20rpx auto 0;
        
        image{
           width: 160rpx;
           height: 160rpx;
            border-radius: 50%;
            margin-right: 20rpx;
        }
        .right{
            width: 120rpx;
            height: 54rpx;
            background: rgba(0,199,119,0.2);
            border-radius: 60rpx ;
            font-size: 28rpx;
            color: #2CC6A1;
            text-align: center;
            line-height: 54rpx;
        }
        .name{
            font-size: 32rpx;
            color: #333;
			font-weight: bold;
        }	
		.taglist{
			margin: 16rpx 0;
		}
		.tag{
			background: #F5F5F7;
			border-radius: 15rpx;
			color: #999;
			font-size: 22rpx;
			padding: 6rpx 16rpx;
			line-height: 22rpx;
			display: inline-block;
			
		}
    }
</style>